//
//  MenuPopover.h
//  IPCamera
//
//  Created by 宣佚 on 15/5/28.
//  Copyright (c) 2015年 宣佚. All rights reserved.
//

#import <UIKit/UIKit.h>

@class MenuPopover;

@protocol MenuPopoverDelegate

- (void)menuPopover:(MenuPopover *)menuPopover didSelectMenuItemAtIndex:(NSInteger)selectedIndex;

@end

@interface MenuPopover : UIView <UITableViewDataSource,UITableViewDelegate>

@property(nonatomic,assign) id<MenuPopoverDelegate> menuPopoverDelegate;

- (id)initWithFrame:(CGRect)frame menuItems:(NSArray *)menuItems;
- (void)showInView:(UIView *)view;
- (void)dismissMenuPopover;
- (void)layoutUIForInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation;

@end
